forgot the .unbind()
authorMichael Dale <dale@users.mediawiki.org>
Mon, 7 Sep 2009 18:46:53 +0000 (18:46 +0000)
committerMichael Dale <dale@users.mediawiki.org>
Mon, 7 Sep 2009 18:46:53 +0000 (18:46 +0000)
js2/editPage.js

index 4deebbc..f8f5eda 100644 (file)
@@ -28,7 +28,7 @@ var mwEditPageHelper = {
                //kind of tricky would be nice to use a "loader" call here to avoid concurancy issues. 
                if( typeof $j.wikiEditor != 'undefined' ){
                        setTimeout(function(){
-                               $j('.wikiEditor-ui [rel=file]').addMediaWiz( 
+                               $j('.wikiEditor-ui [rel=file]').unbind().addMediaWiz( 
                                        mwAddMediaConfig 
                                );              
                        },100 );